Optimal. Leaf size=84 \[ 3 \sqrt [3]{1-x}+\frac{3 \log \left (\sqrt [3]{2}-\sqrt [3]{1-x}\right )}{2^{2/3}}-\frac{\log (x+1)}{2^{2/3}}-\sqrt [3]{2} \sqrt{3} \tan ^{-1}\left (\frac{2^{2/3} \sqrt [3]{1-x}+1}{\sqrt{3}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0377397, antiderivative size = 84, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {50, 57, 617, 204, 31} \[ 3 \sqrt [3]{1-x}+\frac{3 \log \left (\sqrt [3]{2}-\sqrt [3]{1-x}\right )}{2^{2/3}}-\frac{\log (x+1)}{2^{2/3}}-\sqrt [3]{2} \sqrt{3} \tan ^{-1}\left (\frac{2^{2/3} \sqrt [3]{1-x}+1}{\sqrt{3}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 50
Rule 57
Rule 617
Rule 204
Rule 31
Rubi steps
\begin{align*} \int \frac{\sqrt [3]{1-x}}{1+x} \, dx &=3 \sqrt [3]{1-x}+2 \int \frac{1}{(1-x)^{2/3} (1+x)} \, dx\\ &=3 \sqrt [3]{1-x}-\frac{\log (1+x)}{2^{2/3}}-\frac{3 \operatorname{Subst}\left (\int \frac{1}{\sqrt [3]{2}-x} \, dx,x,\sqrt [3]{1-x}\right )}{2^{2/3}}-\frac{3 \operatorname{Subst}\left (\int \frac{1}{2^{2/3}+\sqrt [3]{2} x+x^2} \, dx,x,\sqrt [3]{1-x}\right )}{\sqrt [3]{2}}\\ &=3 \sqrt [3]{1-x}+\frac{3 \log \left (\sqrt [3]{2}-\sqrt [3]{1-x}\right )}{2^{2/3}}-\frac{\log (1+x)}{2^{2/3}}+\left (3 \sqrt [3]{2}\right ) \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1+2^{2/3} \sqrt [3]{1-x}\right )\\ &=3 \sqrt [3]{1-x}-\sqrt [3]{2} \sqrt{3} \tan ^{-1}\left (\frac{1+2^{2/3} \sqrt [3]{1-x}}{\sqrt{3}}\right )+\frac{3 \log \left (\sqrt [3]{2}-\sqrt [3]{1-x}\right )}{2^{2/3}}-\frac{\log (1+x)}{2^{2/3}}\\ \end{align*}
Mathematica [A] time = 0.047317, size = 104, normalized size = 1.24 \[ 3 \sqrt [3]{1-x}+\sqrt [3]{2} \log \left (\sqrt [3]{2}-\sqrt [3]{1-x}\right )-\frac{\log \left ((1-x)^{2/3}+\sqrt [3]{2-2 x}+2^{2/3}\right )}{2^{2/3}}-\sqrt [3]{2} \sqrt{3} \tan ^{-1}\left (\frac{2^{2/3} \sqrt [3]{1-x}+1}{\sqrt{3}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 84, normalized size = 1. \begin{align*} 3\,\sqrt [3]{1-x}+\sqrt [3]{2}\ln \left ( \sqrt [3]{1-x}-\sqrt [3]{2} \right ) -{\frac{\sqrt [3]{2}}{2}\ln \left ( \left ( 1-x \right ) ^{{\frac{2}{3}}}+\sqrt [3]{2}\sqrt [3]{1-x}+{2}^{{\frac{2}{3}}} \right ) }-\sqrt [3]{2}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 1+{2}^{{\frac{2}{3}}}\sqrt [3]{1-x} \right ) } \right ) \sqrt{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.46232, size = 116, normalized size = 1.38 \begin{align*} -\sqrt{3} 2^{\frac{1}{3}} \arctan \left (\frac{1}{6} \, \sqrt{3} 2^{\frac{2}{3}}{\left (2^{\frac{1}{3}} + 2 \,{\left (-x + 1\right )}^{\frac{1}{3}}\right )}\right ) - \frac{1}{2} \cdot 2^{\frac{1}{3}} \log \left (2^{\frac{2}{3}} + 2^{\frac{1}{3}}{\left (-x + 1\right )}^{\frac{1}{3}} +{\left (-x + 1\right )}^{\frac{2}{3}}\right ) + 2^{\frac{1}{3}} \log \left (-2^{\frac{1}{3}} +{\left (-x + 1\right )}^{\frac{1}{3}}\right ) + 3 \,{\left (-x + 1\right )}^{\frac{1}{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.19034, size = 275, normalized size = 3.27 \begin{align*} -\sqrt{3} 2^{\frac{1}{3}} \arctan \left (\frac{1}{3} \, \sqrt{3} 2^{\frac{2}{3}}{\left (-x + 1\right )}^{\frac{1}{3}} + \frac{1}{3} \, \sqrt{3}\right ) - \frac{1}{2} \cdot 2^{\frac{1}{3}} \log \left (2^{\frac{2}{3}} + 2^{\frac{1}{3}}{\left (-x + 1\right )}^{\frac{1}{3}} +{\left (-x + 1\right )}^{\frac{2}{3}}\right ) + 2^{\frac{1}{3}} \log \left (-2^{\frac{1}{3}} +{\left (-x + 1\right )}^{\frac{1}{3}}\right ) + 3 \,{\left (-x + 1\right )}^{\frac{1}{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 1.92376, size = 170, normalized size = 2.02 \begin{align*} \frac{4 \sqrt [3]{-1} \sqrt [3]{x - 1} \Gamma \left (\frac{4}{3}\right )}{\Gamma \left (\frac{7}{3}\right )} + \frac{4 \sqrt [3]{-2} e^{- \frac{i \pi }{3}} \log{\left (- \frac{2^{\frac{2}{3}} \sqrt [3]{x - 1} e^{\frac{i \pi }{3}}}{2} + 1 \right )} \Gamma \left (\frac{4}{3}\right )}{3 \Gamma \left (\frac{7}{3}\right )} - \frac{4 \sqrt [3]{-2} \log{\left (- \frac{2^{\frac{2}{3}} \sqrt [3]{x - 1} e^{i \pi }}{2} + 1 \right )} \Gamma \left (\frac{4}{3}\right )}{3 \Gamma \left (\frac{7}{3}\right )} + \frac{4 \sqrt [3]{-2} e^{\frac{i \pi }{3}} \log{\left (- \frac{2^{\frac{2}{3}} \sqrt [3]{x - 1} e^{\frac{5 i \pi }{3}}}{2} + 1 \right )} \Gamma \left (\frac{4}{3}\right )}{3 \Gamma \left (\frac{7}{3}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]